from Rk11.Base import Base
from selenium.webdriver.common.by import By
from selenium import webdriver

class Page(Base):
/
    login_loc=(By.XPATH,'/html/body/div[1]/div/div[2]/ul/li[1]/a')
    def login(self):
        self.click(login_loc)

    user_loc=(By.NAME,'uasername')
    def user(self,loc):

        self.send_keys(user_loc,'13811033962')

    password_loc=(By.NAME,'password')
    def password(self,loc):
        self.send_keys(password_loc,'123456')


    loginbtn_loc=(By.XPATH,'//*[@id="theForm"]/div[5]/a')
    def loginbtn(self,loc):
        self.click(loginbtn_loc)


    sousuo_loc=(By.XPATH,'//*[@id="searchForm"]/div[1]/input')
    def sousuo(self,loc):
        self.send_keys(sousuo_loc,'音乐耳机')


    sousuobtn_loc=(By.CLASS_NAME,'search-input-btn')
    def sousuobtn(self):
        self.click(sousuobtn_loc)


    def luoji_A3mall(self):
        self